//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.kuang.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@TableName("kss_category")
public class Category implements Serializable {
    @TableId(value = "subject_id", type = IdType.ID_WORKER)
    private Long subjectId;
    //分类父id = 0 代表一级分类 否则就二级分类
    private Long subjectPid;
    //分类名称"
    private String subjectTitle;
    //排序
    private Integer subjectSort;
    //子标题
    private String subjectStitle;
    //图标
    private String subicon;
    //分类描述信息
    private String subjectMsg;
    //排序 0未发布 1发布
    private Integer status;
    // 用于存储一级分类对应二级分类的子集合
    @TableField(exist = false)
    private List<Category> childrenList;
    //创建时间
    @TableField(
            fill = FieldFill.INSERT
    )
    private Date createTime;
    //更新时间
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    private Date updateTime;

    public Category() {
    }

    public Long getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Long subjectId) {
        this.subjectId = subjectId;
    }

    public Long getSubjectPid() {
        return subjectPid;
    }

    public void setSubjectPid(Long subjectPid) {
        this.subjectPid = subjectPid;
    }

    public String getSubjectTitle() {
        return subjectTitle;
    }

    public void setSubjectTitle(String subjectTitle) {
        this.subjectTitle = subjectTitle;
    }

    public Integer getSubjectSort() {
        return subjectSort;
    }

    public void setSubjectSort(Integer subjectSort) {
        this.subjectSort = subjectSort;
    }

    public String getSubjectStitle() {
        return subjectStitle;
    }

    public void setSubjectStitle(String subjectStitle) {
        this.subjectStitle = subjectStitle;
    }

    public String getSubicon() {
        return subicon;
    }

    public void setSubicon(String subicon) {
        this.subicon = subicon;
    }

    public String getSubjectMsg() {
        return subjectMsg;
    }

    public void setSubjectMsg(String subjectMsg) {
        this.subjectMsg = subjectMsg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<Category> getChildrenList() {
        return childrenList;
    }

    public void setChildrenList(List<Category> childrenList) {
        this.childrenList = childrenList;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Category{" +
                "subjectId=" + subjectId +
                ", subjectPid=" + subjectPid +
                ", subjectTitle='" + subjectTitle + '\'' +
                ", subjectSort=" + subjectSort +
                ", subjectStitle='" + subjectStitle + '\'' +
                ", subicon='" + subicon + '\'' +
                ", subjectMsg='" + subjectMsg + '\'' +
                ", status=" + status +
                ", childrenList=" + childrenList +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
